<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>网上投票管理系统</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/index.html.css">
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="js/index.html.js"></script>
</head>
<body>
<div id="num1">
<form action="Login" method="POST" id="submitForm">
<input type="hidden" name="utype" value="a">
		<table id="table1">
			<tr>
				<td align="right">
					<img src="images/banner2.png" id="banner1">
				</td>
				<td>
					<table width=1 border=0 cellspacing=0 cellpadding=0 height=150 border=0 bgcolor=#b1bc35>
						<tr>
							<td></td>
						</tr>
					</table>
				</td>
				<td>
					<table>
						<tr>
							<th>账号</th>
							<td><input type="text" name="username" id="user_name"></td>
						</tr>
						<tr><td colspan="2"><br/></td></tr>
						<tr>
							<th>密码</th>
							<td><input type="password" name="userpassword" id="user_password"></td>
						</tr>
						<tr>
							<td colspan="2">
							<span>
							<%	
								request.setCharacterEncoding("UTF-8");
							 	String message = (String)request.getAttribute("message");
							 	if(message!=null&&!message.equals("OK")){
							 		out.println("["+message+"]");
							 	}
							 %>
							</span>
							<br/>
							</td>
						</tr>
						<tr>
							<td colspan="2" align="right">
								<input type="button" value="登录" id="button_submit" onclick="validate2submit()">
							</td>
						</tr>
					</table>
				</td>
			<tr>
		</table>
</form>
</div>
</body>
</html>